class ZZ {
    name: string;
    age: number;
}

interface Izks extends ZZ {
    // run: () => number;
    // run(): number
}


let is: Izks = {
    age: 0,
    name: "",
    run(): number {
        return 0;
    }

};

class BBB implements Izks {
    name: string;
    age: number;

    // 在类中两个函数的使用
    // run(): number {
    //     return 0;
    // }
    // run = (): number => {
    //     return 0;
    // }
    run = function (): number {
        return 0;
    }
}
